package cn.com.bluemoon.bd.flink.udf;

import org.apache.flink.table.functions.ScalarFunction;

/**
 * @author 刘天能
 * @createAt 2020-08-14 14:48
 * @description 当字符串为null时返回自定义默认值
 */
public class FNvl extends ScalarFunction {
    public static String eval(String value, String customValue) {
        return null != value ? value : customValue;
    }
}
